global:
  # 每5分钟检查一次是否恢复
  resolve_timeout: 5m
route:
  # 采用哪个标签来多为分组依据
  group_by: ['dingding']
  # 组告警等待时间。也就是告警产生后等待30s，如果有同组告警一起发出
  group_wait: 30s
  # 两组告警的间隔时间
  group_interval: 30s
  # 重复告警的间隔时间，减少相同告警的发送频率
  repeat_interval: 2m
  # 设置默认接收人
  receiver: 'dingding.webhook1'
receivers:
  - name: 'dingding.webhook1'
    webhook_configs:
    - url: 'http://{{ ansible_host }}:8060/dingtalk/webhook1/send'
      send_resolved: true
inhibit_rules:
  - source_match:
      severity: 'critical'
    target_match:
      severity: 'warning'
    equal: ['alertname', 'dev', 'instance']
